import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    sounter:0
  },
  getters: {
  },
  mutations: {
    JIA(state,value){
       state.sounter = state.sounter + value
    },
    JIAN(state,value){
       state.sounter = state.sounter - value
    }
  },
  actions: {
    jia(conetxt,value){
       conetxt.commit('JIA',value)
    },
    jian(conetxt,value){
       conetxt.commit('JIAN',value)
    }
  },
  modules: {
  }
})
